<extend name="Public/base"/>

<block name="body">
    <!-- 标题栏 -->
    <div class="main-title">
        <h2>私人定制信息列表</h2>
    </div>
    <div class="clearfix">
        <div class="col-xs-10">
             <!-- <div class="col-xs-10">
              <a class="btn btn-ajax btn-success" href="{:U('add')}">新增</a>
            <button class="btn ajax-post btn-info" url="{:U('del')}"
                    target-form="ids">删除
            </button>
            
            </div> -->

        </div>
        <script>
            function post_select_form(){
                var ids=$('.ids').serialize();
                var title="{:L('_USER_GROUP_SELECT_')}";
                $.post("{:U('user/changeGroup')}",ids,function(msg){
                    (new $.zui.ModalTrigger({custom: msg,title:title})).show();
                })
            }
        </script>

        <!-- 高级搜索 -->
        <div class="search-form  col-xs-2 text-right">
            <div class="input-group">
                <input type="text" name="patentname" class="search-input form-control" value="{:I('patentname')}"
                       placeholder="请输入需求名称或ID">
                                 <span class="input-group-btn">  <a class="btn btn-default" href="javascript:;" id="search" url="{:U('index')}"><i class="icon-search"></i></a></span>
            </div>
        </div>
    </div>
    <!-- 数据列表 -->
    <div class="data-table with-padding">
        <table class="table table-bordered table-striped ">
            <thead>
            <tr>
                <!-- <th class="row-selected row-selected"><input class="check-all" type="checkbox"/></th> -->
                <th class="">ID</th>
                <th class="">项目需求名称</th>
                <th class="">所在地</th>
                <th class="">技术标签</th>
                <th class="">需求类型</th>
                <th class="">需求截止时间</th>
                <th class="">状态</th>
                <th class="">操作</th>

            </tr>
            </thead>
            <tbody>
            <notempty name="_list">
                <volist name="_list" id="vo">
                    <tr>
                       
                        <!-- <td><input class="ids" type="checkbox" name="id[]" value="{$vo.uid}"/></td> -->
                        <td>{$vo.id}</td>
                        <td><a href="{:U('Actmanage/xqdetail?id='.$vo['id'])}" class="authorize">{$vo.xname}</a></td>
                        <td>
                        <volist name="vo.tids1" id="v">{$v.name}</volist>
                        <span>--</span>
                        <volist name="vo.tids2" id="v">{$v.name}</volist>
                        </td>
                        <td><volist name="vo.tids" id="v">{$v.lable}　</volist></td>
                        <td>{$vo.xqlx}</td>
                        <td>{$vo.xqtime}</td>
                        <td>{$vo.xstatus_text}</td>

                        <td>
                            <!-- <a href="{:U('Techolder/del?id='.$vo['id'])}" class="confirm ajax-get">删除</a> -->
                          <!--    <a href="{:U('Actmanage/xqdetail?id='.$vo['id'])}" class="authorize">详情</a>   -->        
  <!--                           <a href="{:U('Actmanage/pipeiing?id='.$vo['id'])}" class="authorize">匹配技术</a> -->
                            <a href="{:U('Actmanage/commit?id='.$vo['id'])}" class="authorize">上传评估报告</a>
                            <a href="{:U('Actmanage/report?id='.$vo['id'])}" class="authorize">评估结果</a>
<!--                             <a href="{:U('Actmanage/jindu?id='.$vo['id'])}" class="authorize">专家评估进度</a>
 --><!--                          <a class="authorize" data-iframe="http://localhost/duijie2/admin.php?c=Actmanage&a=assessment" data-toggle="modal" data-width="700px" data-height="500px" style="cursor:pointer;">查看评估统计</a>
 -->                           
                            <!-- <a href="{:U('Activity/apply?id='.$vo['id'])}">报名</a> -->
                        </td>

                    </tr>
                </volist>
               <else/>
                <td colspan="9" class="text-center">{:L('_ADMIN_USER_EMPTY_')}</td>
            </notempty>
            </tbody>
        </table>
    </div>
    <div class="with-padding">
        {$_page}
    </div>
</block>

<block name="script">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>

    <script type="text/javascript">
        //搜索功能
        $("#search").click(function () {
            var url = $(this).attr('url');
            var query = $('.search-form').find('input').serialize();
            query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
            query = query.replace(/^&/g, '');
            if (url.indexOf('?') > 0) {
                url += '&' + query;
            } else {
                url += '?' + query;
            }
            window.location.href = url;
        });
        //回车搜索
        $(".search-input").keyup(function (e) {
            if (e.keyCode === 13) {
                $("#search").click();
                return false;
            }
        });
        //导航高亮
        highlight_subnav("{:U('Actmanage/weipg')}");
    </script>
</block>